Previous Book Contents Book Index Next

Inside Macintosh: 3D Graphics Programming With QuickDraw 3D /
Chapter 2 - 3D Viewer / 3D Viewer Reference
3D Viewer Routines / Creating and Configuring Viewers


Q3ViewerSetBounds

You can use the Q3ViewerSetBounds function to set the rectangle that bounds a viewer's pane.

OSErr Q3ViewerSetBounds (
TQ3ViewerObject theViewer, 
Rect *bounds);
theViewer
A viewer object.
bounds
The desired viewer pane for the specified viewer object. This rectangle is specified in window coordinates, where the origin (0, 0) is the upper-left corner of the window and values increase to the right and down the window.
DESCRIPTION
The Q3ViewerSetBounds function sets the bounds of the viewer pane of the viewer object specified by the theViewer parameter to the rectangle specified by the bounds parameter.

IMPORTANT
Any changes to a viewer's bounds will not be visible until you call Q3ViewerDraw with the specified viewer object.

Previous Book Contents Book Index Next

© Apple Computer, Inc.
11 JUL 1996